﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 前台点餐做法表
    /// </summary>
    public class corecmsfoodorderingtask
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public Int64 id { get; set; }

        /// <summary>
        /// 订单id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "orderId")]
        public Int64 orderId { get; set; }

        /// <summary>
        /// 购物车id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "detailId")]
        public Int64 detailId { get; set; }

        /// <summary>
        /// 做法id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "tastId", IsNullable = true)]
        public Int64 tastId { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "quantity")]
        public Int32 quantity { get; set; }

        /// <summary>
        /// 加价方式0不加价；1.固定加价；2按重量加价
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "addPriceWay")]
        public Int32 addPriceWay { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "taskPrice")]
        public Decimal taskPrice { get; set; }
    }
}
